//
//  SegmentControlView.m
//  qiuShiJiangHu
//
//  Created by xalo on 16/1/23.
//  Copyright © 2016年 糗事江湖项目组. All rights reserved.
//

#import "SegmentControlView.h"

@implementation SegmentControlView

-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        CGFloat totalWith=self.frame.size.width;
        CGFloat totalHeight=self.frame.size.height;
        //给segment赋值
        self.segment=[[UISegmentedControl alloc] initWithItems:@[@"纯文",@"视频",@"纯图",@"精华"]];
        self.segment.tintColor=[UIColor whiteColor];
        
        
        
    }
    return self;

}

@end
